//
//  CommonTools.swift
//  SinaWeibo
//
//  Created by 王朝阳 on 2016/10/22.
//  Copyright © 2016年 wangzhaoyang. All rights reserved.
//

import UIKit

//微博中通知的名字
let SinaSwitchRootVCNoti = "SinaSwitchRootVCNoti"
//屏幕的宽和高
let SinaScreenW = UIScreen.main.bounds.width
let SinaScreenH = UIScreen.main.bounds.height

//微博的主题颜色
let SinaColor = UIColor.orange

//微博相关信息
let SinaAppKey = "600162629"
let SinaAppSecret = "1d86d0e5c718f9ec90244f1fb9a06730"
let SinaRedirectURI = "http://www.baidu.com"

//微博账号
let SinaWeName = "1181973876@qq.com"
let SinaWePsswd = "ILOVEYOU1220"

// 常用字体大小
let SinaBigFontSize: CGFloat = 18
let SinaNormalFontSize: CGFloat = 14
let SinaSmallFontSize: CGFloat = 10

//随机颜色
func SinaRandomColor() -> UIColor {
    let r = CGFloat(arc4random()%256)
    let g = CGFloat(arc4random()%256)
    let b = CGFloat(arc4random()%256)
    return UIColor(red: r/255, green: g/255, blue: b/255, alpha: 1)
}
